package com.msl.base;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import utils.IdWorker;

/**
 * @ProjectName: tensquare_parent03
 * @Package: com.msl
 * @ClassName: BaseApplication
 * @Author: Messi
 * @Date: 2020/7/30 21:12
 * @Version: 1.0
 */
//启动类
@SpringBootApplication
public class BaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
